const { Schema, model } = require('mongoose');

const salesSchema = new Schema({
    username: String,
    password: String,
    name: String,
    age: String,
    gender: String,
    phone: String,
    headSculpture: String,
    delete: {
        type: Boolean,
        default: false
    },
    power: {
        type: Number,
        default: 3
    },
    state: {
        type: Number,
        default: 1
    },
    ordersId: Array,
    customersId: Array,
}, { versionKey: false });

const salesModel = model('salesModel', salesSchema, 'sales');

module.exports.salesModel = salesModel;